import request from '../utils/request'
/**
 * 获取权限列表
 */
export const permissionadd = (data?: any) => {
  return request({
    url: '/resource/add',
    method: 'POST',
    data
  })
}
/**
 * 获取权限列表
 */
export const permissionList = (data?: any) => {
  return request({
    url: '/resource/list',
    method: 'POST',
    data
  })
}
/**
 * 获取权限列表
 */
export const permissionRemove = (id: string) => {
  return request({
    url: `/resource/delete/${id}`
  })
}
/**
 * 获取权限详情
 */
export const permissionDetail = (id: string) => {
  return request({
    url: `/resource/detail/${id}`
  })
}
